public class StartTriagePatientEvent extends EventBase {
	private PatientBase patient;
	
	public StartTriagePatientEvent(int id, PatientBase patient) {
		this.patient = patient;
	}
	
	
	public boolean canOccur(State state) {
		if(state.isTriageAvailable())
			return true;
		else
			return false;
	}
	
	public void execute(State s) {
		patient.setActivity(TreatmentType.Triage);
		Simulator.addEvent(new EndPatientTriageEvent(patient, Simulator.nextNormal(10, 3)));
		
	}

}
